package com.example.sunmiv1.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AllocationGoodsInfo implements Serializable {

    /**
     * status : 1
     * msg : 查詢成功
     * data : [{"id":"22845","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"907","goods_id":"21288","sku_id":"0","goods_name":"7","sku_name":"","sku_id_list":"","goods_number":"300790","sku_goods_number":"","goods_code":"72541191704","sku_code":"","company":"","specifications":"","attribute_state":"1","pricing_method":"2","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":0,"sku_num":"1.000","more_num":"10.000","less_num":"10.000","status":"0","cost_price":0,"add_time":"1572060851","index":1,"output_num":"","stock_price":0},{"id":"22844","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21287","sku_id":"0","goods_name":"1","sku_name":"","sku_id_list":"","goods_number":"111112","sku_goods_number":"","goods_code":"","sku_code":"","company":"","specifications":"","attribute_state":"1","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":10,"sku_num":"1.000","more_num":"0.000","less_num":"0.000","status":"0","cost_price":1,"add_time":"1572060812","index":2,"output_num":"","stock_price":1},{"id":"22843","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21283","sku_id":"1193","goods_name":"測試規格","sku_name":"xl,三分","sku_id_list":"334,303","goods_number":"29319","sku_goods_number":"29319-9","goods_code":"1878755484","sku_code":"1878755484-9","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":15,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":1,"add_time":"1572058535","index":3,"output_num":"","stock_price":1},{"id":"22842","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21283","sku_id":"1192","goods_name":"測試規格","sku_name":"原味,xl","sku_id_list":"299,303","goods_number":"29319","sku_goods_number":"29319-8","goods_code":"1878755484","sku_code":"1878755484-8","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":16,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":1,"add_time":"1572058535","index":4,"output_num":"","stock_price":1},{"id":"22841","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21283","sku_id":"1191","goods_name":"測試規格","sku_name":"麻辣,xl","sku_id_list":"298,303","goods_number":"29319","sku_goods_number":"29319-7","goods_code":"1878755484","sku_code":"1878755484-7","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":1,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":1,"add_time":"1572058535","index":5,"output_num":"","stock_price":1},{"id":"22840","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21283","sku_id":"1190","goods_name":"測試規格","sku_name":"x,三分","sku_id_list":"334,301","goods_number":"29319","sku_goods_number":"29319-3","goods_code":"1878755484","sku_code":"1878755484-3","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":2,"sku_num":"1.000","more_num":"2.000","less_num":"2.000","status":"0","cost_price":1,"add_time":"1572058187","index":6,"output_num":"","stock_price":1},{"id":"22839","merchant_id":"2","store_id":"62","warehouse_id":"474","goods_class_id":"901","goods_id":"21283","sku_id":"1189","goods_name":"測試規格","sku_name":"麻辣,l","sku_id_list":"298,302","goods_number":"29319","sku_goods_number":"29319-4","goods_code":"1878755484","sku_code":"1878755484-4","company":"","specifications":"","attribute_state":"2","pricing_method":"1","goods_brand_id":"0","goods_yieldly_id":"0","goods_num":2,"sku_num":"1.000"}]
     */

    private int status;
    private String msg;
    private List<DataBean> data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    public List<DataBean> getList() {
        if (data == null) {
            return new ArrayList<>();
        }
        return data;
    }

    public void setList(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * id : 22845
         * merchant_id : 2
         * store_id : 62
         * warehouse_id : 474
         * goods_class_id : 907
         * goods_id : 21288
         * sku_id : 0
         * goods_name : 7
         * sku_name :
         * sku_id_list :
         * goods_number : 300790
         * sku_goods_number :
         * goods_code : 72541191704
         * sku_code :
         * company :
         * specifications :
         * attribute_state : 1
         * pricing_method : 2
         * goods_brand_id : 0
         * goods_yieldly_id : 0
         * goods_num : 0
         * sku_num : 1.000
         * more_num : 10.000
         * less_num : 10.000
         * status : 0
         * cost_price : 0
         * add_time : 1572060851
         * index : 1
         * output_num :
         * stock_price : 0
         */

        private String id;
        private String merchant_id;
        private String store_id;
        private String warehouse_id;
        private String goods_class_id;
        private String goods_id;
        private String sku_id;
        private String goods_name;
        private String sku_name;
        private String sku_id_list;
        private String goods_number;
        private String sku_goods_number;
        private String goods_code;
        private String sku_code;
        private String company;
        private String specifications;
        private String attribute_state;
        private String pricing_method;
        private String goods_brand_id;
        private String goods_yieldly_id;
        private double goods_num;
        private String sku_num;
        private String more_num;
        private String less_num;
        private String status;
        private double cost_price;
        private String add_time;
        private int index;
        private String output_num;
        private double stock_price;
        private boolean checked;
        private String remarks;
        private String serial_number_state;
        private List<SerialListBean> serial_list;

        public DataBean(StoreRedeployment.GoodsListBean dataBean) {
            this.id = dataBean.getId();
            this.merchant_id = dataBean.getMerchant_id();
            this.store_id = dataBean.getStore_id();
            this.warehouse_id = dataBean.getWarehouse_id();
            this.goods_class_id = dataBean.getGoods_class_id();
            this.goods_id = dataBean.getGoods_id();
            this.sku_id = dataBean.getSku_id();
            this.goods_name = dataBean.getGoods_name();
            this.sku_name = dataBean.getSku_name();
            this.sku_id_list = dataBean.getSku_id_list();
            this.goods_number = dataBean.getGoods_number();
            this.sku_goods_number = dataBean.getSku_goods_number();
            this.goods_code = dataBean.getGoods_code();
            this.sku_code = dataBean.getSku_code();
            this.company = dataBean.getCompany();
            this.specifications = "";
            this.attribute_state = dataBean.getAttribute_state();
            this.pricing_method = dataBean.getPricing_method();
            this.goods_brand_id = "0";
            this.goods_yieldly_id = "0";
            this.goods_num = dataBean.getGoods_num();
            this.sku_num = dataBean.getSku_num();
            this.more_num = dataBean.getStock_num();
            this.less_num = dataBean.getStock_num();
            this.status = "0";
            this.cost_price = 0;
            this.add_time = dataBean.getAdd_time();
            this.index = dataBean.getIndex();
            this.output_num = dataBean.getOutput_num();
            this.stock_price = dataBean.getStock_price();
            this.checked = true;
            this.remarks = dataBean.getRemarks();
        }

        public DataBean(ScanGoodInfo.DataBean dataBean) {
            this.id = dataBean.getId();
            this.merchant_id = dataBean.getMerchant_id();
            this.store_id = dataBean.getStore_id();
            this.warehouse_id = dataBean.getWarehouse_id();
            this.goods_class_id = dataBean.getGoods_class_id();
            this.goods_id = dataBean.getGoods_id();
            this.sku_id = dataBean.getSku_id();
            this.goods_name = dataBean.getGoods_name();
            this.sku_name = dataBean.getSku_name();
            this.sku_id_list = dataBean.getSku_id_list();
            this.goods_number = dataBean.getGoods_number();
            this.sku_goods_number = dataBean.getSku_goods_number();
            this.goods_code = dataBean.getGoods_code();
            this.sku_code = dataBean.getSku_code();
            this.company = dataBean.getCompany();
            this.specifications = dataBean.getSpecifications();
            this.attribute_state = dataBean.getAttribute_state();
            this.pricing_method = dataBean.getPricing_method();
            this.goods_brand_id = dataBean.getGoods_brand_id();
            this.goods_yieldly_id = dataBean.getGoods_yieldly_id();
            this.goods_num = dataBean.getGoods_num();
            this.sku_num = dataBean.getSku_num();
            this.more_num = dataBean.getMore_num();
            this.less_num = dataBean.getLess_num();
            this.status = dataBean.getStatus();
            this.cost_price = dataBean.getCost_price();
            this.add_time = dataBean.getAdd_time();
            this.index = index;
            this.output_num = dataBean.getOutput_num() + "";
            this.stock_price = dataBean.getStock_price();
            this.checked = checked;
            this.remarks = dataBean.getRemarks();
        }

        public List<SerialListBean> getSerial_list() {
            if (serial_list == null) {
                return new ArrayList<>();
            }
            return serial_list;
        }

        public void setSerial_list(List<SerialListBean> serial_list) {
            this.serial_list = serial_list;
        }

        public String getSerial_number_state() {
            return serial_number_state == null ? "" : serial_number_state;
        }

        public void setSerial_number_state(String serial_number_state) {
            this.serial_number_state = serial_number_state;
        }

        public String getRemark() {
            return remarks == null ? "" : remarks;
        }

        public void setRemark(String remark) {
            this.remarks = remark;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMerchant_id() {
            return merchant_id == null ? "" : merchant_id;
        }

        public void setMerchant_id(String merchant_id) {
            this.merchant_id = merchant_id;
        }

        public String getStore_id() {
            return store_id == null ? "" : store_id;
        }

        public void setStore_id(String store_id) {
            this.store_id = store_id;
        }

        public String getWarehouse_id() {
            return warehouse_id == null ? "" : warehouse_id;
        }

        public void setWarehouse_id(String warehouse_id) {
            this.warehouse_id = warehouse_id;
        }

        public String getGoods_class_id() {
            return goods_class_id == null ? "" : goods_class_id;
        }

        public void setGoods_class_id(String goods_class_id) {
            this.goods_class_id = goods_class_id;
        }

        public String getGoods_id() {
            return goods_id == null ? "" : goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getSku_id() {
            return sku_id == null ? "" : sku_id;
        }

        public void setSku_id(String sku_id) {
            this.sku_id = sku_id;
        }

        public String getGoods_name() {
            return goods_name == null ? "" : goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getSku_name() {
            return sku_name == null ? "" : sku_name;
        }

        public void setSku_name(String sku_name) {
            this.sku_name = sku_name;
        }

        public String getSku_id_list() {
            return sku_id_list == null ? "" : sku_id_list;
        }

        public void setSku_id_list(String sku_id_list) {
            this.sku_id_list = sku_id_list;
        }

        public String getGoods_number() {
            return goods_number == null ? "" : goods_number;
        }

        public void setGoods_number(String goods_number) {
            this.goods_number = goods_number;
        }

        public String getSku_goods_number() {
            return sku_goods_number == null ? "" : sku_goods_number;
        }

        public void setSku_goods_number(String sku_goods_number) {
            this.sku_goods_number = sku_goods_number;
        }

        public String getGoods_code() {
            return goods_code == null ? "" : goods_code;
        }

        public void setGoods_code(String goods_code) {
            this.goods_code = goods_code;
        }

        public String getSku_code() {
            return sku_code == null ? "" : sku_code;
        }

        public void setSku_code(String sku_code) {
            this.sku_code = sku_code;
        }

        public String getCompany() {
            return company == null ? "" : company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public String getSpecifications() {
            return specifications == null ? "" : specifications;
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }

        public String getAttribute_state() {
            return attribute_state == null ? "" : attribute_state;
        }

        public void setAttribute_state(String attribute_state) {
            this.attribute_state = attribute_state;
        }

        public String getPricing_method() {
            return pricing_method == null ? "" : pricing_method;
        }

        public void setPricing_method(String pricing_method) {
            this.pricing_method = pricing_method;
        }

        public String getGoods_brand_id() {
            return goods_brand_id == null ? "" : goods_brand_id;
        }

        public void setGoods_brand_id(String goods_brand_id) {
            this.goods_brand_id = goods_brand_id;
        }

        public String getGoods_yieldly_id() {
            return goods_yieldly_id == null ? "" : goods_yieldly_id;
        }

        public void setGoods_yieldly_id(String goods_yieldly_id) {
            this.goods_yieldly_id = goods_yieldly_id;
        }

        public double getGoods_num() {
            return goods_num;
        }

        public void setGoods_num(double goods_num) {
            this.goods_num = goods_num;
        }

        public String getSku_num() {
            return sku_num == null ? "" : sku_num;
        }

        public void setSku_num(String sku_num) {
            this.sku_num = sku_num;
        }

        public String getMore_num() {
            return more_num == null ? "" : more_num;
        }

        public void setMore_num(String more_num) {
            this.more_num = more_num;
        }

        public String getLess_num() {
            return less_num == null ? "" : less_num;
        }

        public void setLess_num(String less_num) {
            this.less_num = less_num;
        }

        public String getStatus() {
            return status == null ? "" : status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public double getCost_price() {
            return cost_price;
        }

        public void setCost_price(double cost_price) {
            this.cost_price = cost_price;
        }

        public String getAdd_time() {
            return add_time == null ? "" : add_time;
        }

        public void setAdd_time(String add_time) {
            this.add_time = add_time;
        }

        public int getIndex() {
            return index;
        }

        public void setIndex(int index) {
            this.index = index;
        }

        public String getOutput_num() {
            return output_num;
        }

        public void setOutput_num(String output_num) {
            this.output_num = output_num;
        }

        public double getStock_price() {
            return stock_price;
        }

        public void setStock_price(double stock_price) {
            this.stock_price = stock_price;
        }

        public static class SerialListBean implements Serializable{
            private String id;
            private String main_serial_number;
            private String auxiliary_serial_number_one;
            private String auxiliary_serial_number_two;

            public SerialListBean(String id,String main_serial_number, String auxiliary_serial_number_one, String auxiliary_serial_number_two) {
                this.id = id;
                this.main_serial_number = main_serial_number;
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }

            public String getMain_serial_number() {
                return main_serial_number == null ? "" : main_serial_number;
            }

            public void setMain_serial_number(String main_serial_number) {
                this.main_serial_number = main_serial_number;
            }

            public String getAuxiliary_serial_number_one() {
                return auxiliary_serial_number_one == null ? "" : auxiliary_serial_number_one;
            }

            public void setAuxiliary_serial_number_one(String auxiliary_serial_number_one) {
                this.auxiliary_serial_number_one = auxiliary_serial_number_one;
            }

            public String getAuxiliary_serial_number_two() {
                return auxiliary_serial_number_two == null ? "" : auxiliary_serial_number_two;
            }

            public void setAuxiliary_serial_number_two(String auxiliary_serial_number_two) {
                this.auxiliary_serial_number_two = auxiliary_serial_number_two;
            }
        }
    }
}
